package com.huantai.gateway.bean;

import lombok.Data;

import java.io.Serializable;

@Data
public class BaseResponse<T> implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 响应代码
     */
    private String code;

    /**
     * 响应消息
     */
    private String message;

    /**
     * 响应结果
     */
    private T result;

    public BaseResponse() {
    }

    public BaseResponse(T result) {
        this.result = result;
    }

    public BaseResponse(String code, String message) {
        this.code = code;
        this.message = message;
    }


}
